/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.mailfolder;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.mailfolder.Mailfolder;

/**
 * @author Administrator (email:xxh@163.com)
 * @since 2013-02-21
 */
public interface MailfolderService {

    /****************************************
     * Insert a instace of Mailfolder
     ****************************************/
    void insert(Mailfolder mailfolder) throws Exception;

    /****************************************
     * Insert instaces of Mailfolder
     ****************************************/
    void batchInsert(Mailfolder mailfolder) throws Exception;

    /****************************************
     * Delete a instace of Mailfolder
     ****************************************/
    void delete(Mailfolder mailfolder) throws Exception;

    /****************************************
     * Delete instaces of Mailfolder
     ****************************************/
    void batchDelete(Mailfolder mailfolder) throws Exception;

    /****************************************
     * Update a instace of Mailfolder
     ****************************************/
    void update(Mailfolder mailfolder) throws Exception;

    /****************************************
     * Query instaces of Mailfolder
     ****************************************/
    List<BaseModel> queryAsList(Mailfolder mailfolder) throws Exception;

    /****************************************
     * Query a instaces of Mailfolder
     ****************************************/
    BaseModel queryAsObject(Mailfolder mailfolder) throws Exception;
}
